#!/bin/bash
i=`netstat -t |wc -l`
if test "$i>100"
then
    service iptables start  #iptables -I INPUT -s 123.44.55.66 -j DROP
else
      echo $i
fi
# netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"t",state[key]}'





